﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameBase;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GalaxyPresident
{
    public class BomberCraft : Unit
    {
        private static Texture2D texture = Constant.content.Load<Texture2D>(@"Resources/Unit/unit3");
        private static Texture2D texture_s = Constant.content.Load<Texture2D>(@"Resources/Unit/unit3_s");

        public BomberCraft(Planet planet)
            : base(planet)
        {
            sprite_s = new Sprite(texture_s, 1, 1,
                new List<int> { 0 }, 150);
            sprite = new Sprite(texture, 1, 1,
                new List<int> { 0 }, 150);
            _attackhelper = new AttackingHelper(new AutoChaseMissile(this));
            _attackhelper.IsAutoChase = true;

            initSprites(planet);
        }

        protected override Unit createInstance()
        {
            return new BomberCraft(PlanetOwner);
        }

        protected override void initInfo()
        {
            meterialCost = 500;
            moneyCost = 800;
            energyCost = 1000;

            _rangeAttack = 200;
            _healthPoint = 2000;
            _energyPoint = 1000;
            _speed = 5;
            _defense = 0.3f;
        }
    }
}
